import React from "react";
import { View, Text, Button } from "react-native";
import { RootStackNavigation } from '../navigator/index';

interface IProps {
  navigation: RootStackNavigation;

}

class Found extends React.Component<IProps> {
  render () {
    const onPress = () => {
      const { navigation } = this.props
      navigation.navigate('Detail', {
        id: 100
      })
    }
    return (
      <View>
        <Text>Found</Text>
        <Button onPress={onPress} title="详情页" />
      </View>
    )
  }
} 
export default Found